package com.stormrage.entity.learn.rep;

import java.io.Serializable;

/**
 * @Title: LeaStudentRep.java
 * @Package com.stormrage.entity.learn.rep
 * @Description: 学员 返回 类
 * @author www.stormragetech.com
 * @date 2016年4月15日
 * @version V1.0
 */
public class LeaStudentRep implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -2848896265082378995L;

	// ------------------------------- Fields -------------------------------

	private Integer seq;

	private Integer id;

	private String realName;

	private String phone;

	private String email;

	private Integer locked;

	private String lockStr;

	// ------------------------------- Fields -------------------------------

	public LeaStudentRep() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	public String getLockStr() {
		return lockStr;
	}

	public void setLockStr(String lockStr) {
		this.lockStr = lockStr;
	}

	// ------------------------------- Fields -------------------------------

	public static LeaStudentRep instance(LeaStudentRep entity, Integer seq) {
		entity.setSeq(seq);
		if (entity.getLocked().equals(0))
			entity.setLockStr("通过");
		if (entity.getLocked().equals(1))
			entity.setLockStr("未通过");
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " realName - " + realName + " phone - " + phone + " email - " + email
				+ " locked - " + locked + " lockStr - " + lockStr;
	}

}
